#include <stdlib.h>
#include <stdio.h>
#include <nds.h>

// common headers
#include "common.h"

// local headers
#include "main.h"
#include "binary.h"

#include "plugin.h"

sPInstance _pinstance;

int _init(sLibs *libs) {
    if(binaryInit(libs)) return 1;

    // <-- setup instance
    std->bzero(&_pinstance, sizeof(sPInstance));

    // setup local keys environment
    _pinstance.keys.delay=60;
    _pinstance.keys.repeat=30;
    _pinstance.keys.count=60;
    // -->

    return init();
}

u32 _query(u32 q) {
    return query(q);
}

int _main(int argc, char *argv[]) {
    return main(argc, argv);
}

void _deinit() {
    deinit();
}

